package edu.lnu.project.timeeditapp.activites;

import edu.lnu.project.timeeditapp.db.TimeEditDataSource;
import edu.lnu.project.timeeditapp.db.TimeEditDbHelper;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;


public class MyBroadcastReceiver extends BroadcastReceiver{

	public final static String ACTION = "action.Reminder";
	
	TimeEditDataSource datasource;
	@Override
	public void onReceive(Context context, Intent intent) {
		int eventId = Integer.parseInt(intent.getExtras().get(TimeEditDbHelper.COLUMN_ID).toString());
		
		Intent eventScreenIntent = new Intent(context, DetailedEventScreen.class);
		eventScreenIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
		eventScreenIntent.putExtra(TimeEditDbHelper.COLUMN_ID, eventId);
		context.startActivity(eventScreenIntent);
	}

}
